home *** CD-ROM | disk | FTP | other *** search
- package mochi.as3
- {
- public class MochiCoins
- {
- public static const LOGGED_IN:String = "LoggedIn";
-
- public static const LOGGED_OUT:String = "LoggedOut";
-
- public static const LOGIN_SHOW:String = "LoginShow";
-
- public static const LOGIN_HIDE:String = "LoginHide";
-
- public static const STORE_SHOW:String = "StoreShow";
-
- public static const STORE_HIDE:String = "StoreHide";
-
- public static const PROFILE_SHOW:String = "ProfileShow";
-
- public static const PROFILE_HIDE:String = "ProfileHide";
-
- public static const PROPERTIES_SAVED:String = "PropertySaved";
-
- public static const WIDGET_LOADED:String = "WidgetLoaded";
-
- public static const ITEM_OWNED:String = "ItemOwned";
-
- public static const ITEM_NEW:String = "ItemNew";
-
- public static const STORE_ITEMS:String = "StoreItems";
-
- public static const USER_INFO:String = "UserInfo";
-
- public static const ERROR:String = "Error";
-
- public static const IO_ERROR:String = "IOError";
-
- public static const NO_USER:String = "NoUser";
-
- public static const PROPERTIES_SIZE:String = "PropertiesSize";
-
- private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher();
-
- public function MochiCoins()
- {
- super();
- }
-
- public static function _rm99() : String
- {
- return MochiServices._rm99();
- }
-
- public static function removeEventListener(param1:String, param2:Function) : void
- {
- _dispatcher.removeEventListener(param1,param2);
- }
-
- public static function _id809(param1:Object = null) : void
- {
- MochiServices._hp652();
- MochiServices._ju656();
- MochiServices.send("coins_showLoginWidget",{"options":param1});
- }
-
- public static function triggerEvent(param1:String, param2:Object) : void
- {
- _dispatcher.triggerEvent(param1,param2);
- }
-
- public static function addEventListener(param1:String, param2:Function) : void
- {
- _dispatcher.addEventListener(param1,param2);
- }
-
- public static function _ec204() : void
- {
- MochiServices.send("coins_hideLoginWidget");
- }
-
- public static function _sm740(param1:Object) : void
- {
- MochiServices.send("coins_saveUserProperties",param1);
- }
-
- public static function _dq553(param1:Object = null) : void
- {
- if(!param1 || typeof param1.item != "string")
- {
- trace("ERROR: showVideo call must pass an Object with an item key");
- return;
- }
- MochiServices._ju656();
- MochiServices.send("coins_showVideo",{"options":param1},null,null);
- }
-
- public static function _mk110(param1:Object = null) : void
- {
- if(!param1 || typeof param1.item != "string")
- {
- trace("ERROR: showItem call must pass an Object with an item key");
- return;
- }
- MochiServices._ju656();
- MochiServices.send("coins_showItem",{"options":param1},null,null);
- }
-
- public static function _cn668() : void
- {
- MochiServices.send("coins_getUserInfo");
- }
-
- public static function _dt467(param1:Object = null) : void
- {
- MochiServices._ju656();
- MochiServices.send("coins_showStore",{"options":param1},null,null);
- }
-
- public static function _bh309() : void
- {
- MochiServices.send("coins_getStoreItems");
- }
- }
- }
-
-